<!DOCTYPE html>
<html>
<head>
    <title>{$post_title} {$site_name} </title>
    <meta name="keywords" content="{$post_keywords}" />
    <meta name="description" content="{$post_excerpt}">
    <tc_include file="Public:head" />
    <style>
        #article_content img {
            height: auto !important;
        }

        #article_content {
            word-wrap: break-word;
        }

        .btn {
            margin-top: 33px;
        }
    </style>
</head>
<body class="">
    <tc_include file="Public:nav" />
    <div class="container tc-main">
        <div class="row">
            <div class="span9">

                <div class="tc-box first-box article-box">
                    <h2 class="fontmsyhbd">{$post_title}</h2>
                    <div class="article-infobox">
                        <php>
                            $postdate=time_format($post_date);
                        </php>
                        <span>{$postdate}</span>
                        <!--<span>
                            <a href="javascript:;"><i class="fa fa-eye"></i><span>{$post_hits}</span></a>
                            <a href="{:U('article/do_like',array('id'=>$article_id))}" class="js-count-btn"><i class="fa fa-thumbs-up"></i><span class="count">{$post_like}</span></a>
                            <a href="{:U('user/favorite/do_favorite',array('id'=>$article_id))}" class="js-favorite-btn" data-title="{$post_title}" data-url="{:leuu('article/index',array('id'=>$article_id,'cid'=>$term_id))}" data-key="{:sp_get_favorite_key('posts',$article_id)}">
                                <i class="fa fa-star-o"></i>
                            </a>
                        </span>-->
                    </div>
                    <br />
                    <!--<div id="article_content" style="background-color:#e6dfdf;padding:15PX 0PX;line-height:30PX;font-size:large">
                        <b>摘要：</b>{$post_excerpt}
                        <br />
                    </div>-->
                    <div id="article_content">
                        {$post_content}
                    </div>
                    <!--<if condition="!empty($post_source)">
                        <div>
                            <b>注：本文转载自{$post_source}，转载目的在于传递更多信息，并不代表本网赞同其观点和对其真实性负责。如有侵权行为，请联系我们，我们会及时删除。</b>
                        </div>
                    </if>
                    <div class="tc-box">
                        <php>
                            $last_terms=sp_get_terms("field:*;limit:1,3;order:term_id asc;where:`term_id` in (SELECT `term_id` FROM `rx_term_relationships` where `object_id`=$id);");
                        </php>
                        <ul class="list-unstyled tc-photos margin-bottom-30" style="margin:5px 0px">
                            <foreach name="last_terms" item="voterm">
                                <li>
                                    <a href="{:leuu('list/index',array('id'=>$voterm['term_id']))}">{$voterm.name}</a>
                                </li>
                            </foreach>
                        </ul>
                    </div>-->
                    <!--<div>
                        <if condition="!empty($prev)">
                            <a href="{:leuu('article/index',array('id'=>$prev['object_id'],'cid'=>$prev['term_id']))}" class="btn btn-primary pull-left">上一篇</a>
                        </if>
                        <if condition="!empty($next)">
                            <a href="{:leuu('article/index',array('id'=>$next['object_id'],'cid'=>$next['term_id']))}" class="btn btn-warning pull-right">下一篇</a>
                        </if>
                        <script type="text/javascript" src="__TMPL__Public/assets/js/qrcode.min.js"></script>
                        <div id="qrcode" style="width: 100px;margin:0 auto"></div>
                        <script type="text/javascript">
                        var qrcode = new QRCode(document.getElementById("qrcode"), {
                        width : 100,
                        height : 100
                        });
                        function makeCode () {
                        qrcode.makeCode("http://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}");
                        }
                        makeCode();
                        </script>
                        <div class="clearfix"></div>
                    </div>-->

                    <!--<div style="width:100%; text-align:center">


                        <a href="javascript:;"><i class="fa fa-eye"></i><span>{$post_hits}</span></a>
                        <a href="{:U('article/do_like',array('id'=>$article_id))}" class="js-count-btn"><i class="fa fa-thumbs-up"></i><span class="count">{$post_like}</span></a>
                        <a href="{:U('user/favorite/do_favorite',array('id'=>$article_id))}" class="js-favorite-btn" data-title="{$post_title}" data-url="{:leuu('article/index',array('id'=>$article_id,'cid'=>$term_id))}" data-key="{:sp_get_favorite_key('posts',$article_id)}">
                            <i class="fa fa-star-o"></i>
                        </a>

                    </div>-->
 
                </div> 
            </div>
            <div class="span3">
                <div class="tc-box">
                    <div class="headtitle">
                        <div style="font-size:11px;color:#AEAEAE;line-height:30px; height: 30px;text-align:right;background-image: url('__TMPL__Public/assets/images/index/网站制作_最新快讯.png')">
                            <a href="/index.php?m=list&a=index&id=12">更多...</a>
                        </div>
                    </div>
                    <div class="ranking">
                        <php>
                            $hot_articles=sp_sql_posts("cid:$portal_index_lastnews;field:post_date,post_title,post_excerpt,object_id,term_id,smeta;order: post_date DESC;limit:2;");
                        </php>
                        <ul class="unstyled">
                            <foreach name="hot_articles" item="vo">
                                <php>
                                    $postdate=time_format($vo['post_date']);
                                </php>
                                <li>
                                    <i style="border-radius: 3px;height: 5px;width: 5px;background-color: red;"></i>
                                    <a title="{$vo.post_title}" onclick="loadmore(this)">
                                        <span class="fontmsyhbd" style="font-size: 14px;">{$vo.post_title}</span>
                                        <p id="kuaixunzhaiyao" style="font-size: 11px;color: #686568; height:0px">{$vo.post_excerpt}</p>
                                        <div id="morenshijian" class="list-actions">
                                            <span style="float: left;font-size: 11px;color: #aeaeae;line-height:20px" class="meta">{$postdate}</span>

                                        </div>
                                        <div id="fenxiang" class="list-actions;" style="display:none">
                                            <span style="float: left;font-size: 11px;color: #aeaeae;line-height:20px" class="meta">{$postdate} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;分享至:</span>
                                            <div class="weixin1"></div>
                                            <div class="weibo1"></div>
                                        </div>
                                    </a>
                                </li>
                            </foreach>
                        </ul>
                    </div>
                    <a href="/index.php?m=list&a=index&id=12">
                        <div class="fontmsyhbd" style="width: 110px;margin-left: 60px;
					    height: 30px;
					    border: 2px solid #C8161D;
					    border-radius: 25px;
					    color: #C8161D;
					    FONT-SIZE: 15PX;
					    line-height: 30px;					    
					    text-align: center;">更多资讯</div>

                    </a>
                </div>

                <!--<div class="tc-box">
                    <div class="headtitle">
                        <h2>相关文章</h2>
                    </div>
                    <php>
                        $last_post=sp_sql_posts("cid:$term_id;field:post_title,post_excerpt,object_id,term_id,smeta;order:istop DESC,post_date desc;limit:3;");
                    </php>
                    <div class="posts">
                        <foreach name="last_post" item="vo">
                            <php>$smeta=json_decode($vo['smeta'],true);</php>
                            <dl class="dl-horizontal">
                                <dt>
                                    <a class="img-wraper" href="{:leuu('article/index',array('id'=>$vo['object_id'],'cid'=>$vo['term_id']))}">
                                        <if condition="empty($smeta['thumb'])">
                                            <img src="__TMPL__Public/assets/images/default_tupian4.png" class="img-responsive" alt="{$vo.post_title}" />
                                            <else />
                                            <img src="{:sp_get_asset_upload_path($smeta['thumb'])}" class="img-responsive img-thumbnail" alt="{$vo.post_title}" />
                                        </if>
                                    </a>
                                </dt>
                                <dd>
                                    <a href="{:leuu('article/index',array('id'=>$vo['object_id'],'cid'=>$vo['term_id']))}">
                                        <p>{:msubstr($vo['post_excerpt'],0,32)}</p>
                                    </a>
                                </dd>
                            </dl>
                        </foreach>
                    </div>
                </div>-->
                <div style="width: 270px;
					    height: 2px;
					    border-radius: 25px;
					 background-color: #C8161D;"></div>
                <div class="tc-box">
                    <div class="headtitle">
                        <img src="__TMPL__Public/assets/images/index/日新网_热点标签.png" />
                    </div>
                    <php>
                        $last_terms=sp_get_terms("field:*;limit:0,8;order:term_id desc;where:taxonomy='hit';");
                    </php>
                    <ul class="list-unstyled tc-photos margin-bottom-30">
                        <foreach name="last_terms" item="vo">
                            <li>
                                <a href="{:leuu('list/index',array('id'=>$vo['term_id']))}">{$vo.name}</a>
                            </li>
                        </foreach>
                    </ul>
                </div>



            </div>

        </div>

    </div>
    <tc_include file="Public:footer" />
    <tc_include file="Public:scripts" />
    <script type="text/javascript">
        function loadmore(obj){
            //$(obj).find('#kuaixunzhaiyao').each(function () {
            //    $(this).css("height", "inherit");
            //});
            //$(obj).find('#fenxiang').each(function () {
            //    $(this).show();
            //});
            //$(obj).find('#morenshijian').each(function () {
            //    $(this).hide();
            //});
            var isHide = false;
            $(obj).find('#kuaixunzhaiyao').each(function () {
                if ($(this).css("height") == "0px") {
                    isHide = true;
                } else {
                    isHide = false;
                }
                if (isHide) {
                    $(this).css("height", "inherit");
                } else {
                    $(this).css("height", "0px");
                }

            });
            $(obj).find('#fenxiang').each(function () {
                if (isHide) {
                    $(this).show();
                } else {
                    $(this).hide();
                }
            });
            $(obj).find('#morenshijian').each(function () {
                if (isHide) {
                    $(this).hide();
                } else {
                    $(this).show();
                }
            });
        }
    </script>
</body>
</html>